package cn.edu.csmzxy.rk233x.auth_system.dto;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import java.util.List;
/**
 * @author wumxing
 * @date 2025/10/15 16:13
 * @description  用户角色关联 DTO
 */
@Data
@Schema(description = "用户角色关联参数")
public class UserRoleDTO {

    @Schema(description = "用户ID", example = "2")
    @NotNull(message = "用户ID不能为空")
    private Long userId;

    @Schema(description = "角色ID列表", example = "[2,3]")
    @NotEmpty(message = "至少选择一个角色")
    private List<Long> roleIds;
}